export namespace="microcks-system"
export app_name="microcks"
export repo="microcks"
export helm="$repo/$app_name"
export url="https://microcks.io/helm"
export source="gitee"

# helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    -f ./oam/microcks/values.yaml

# keda-add-ons-http 组件
# helm upgrade --install kedahttp kedacore/keda-add-ons-http \
# --create-namespace -n $namespace \
# -f ./oam/keda/http.yaml
# --set images.tag=canary

# kubectl create namespace keda-system
# kubectl apply -f https://github.com/kedacore/keda/releases/download/v2.9.3/keda-2.9.3.yaml -n keda-system
